﻿using EntityModel;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace API.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class InterviewController : ControllerBase
    {
        private readonly ApiDbContext db;
        public InterviewController(ApiDbContext context)
        {
            db = context;
        }
        /// <summary>
        /// 根据Employee 的ID查询所有此职员所有的走访记录
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public List<Employee> GetAll()
        {
            return db.Employee.ToList();
        }
    }
}
